<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        h1{
            /*color: #ff0000;*/
            /*color: rgb(90,200,90);*/
            color: rgba(255,0,0,0.1);
        }
        #d1{
            width: 250px;
            height: 150px;
            background-color: purple;
            /*设置背景图片*/
            background-image: url("../2图片.webp");
            /*设置北京图片尺寸--图片重复*/
            background-size: 200px 150px ;
            /*禁止重复*/
            background-repeat: no-repeat;
            /*控制位置*/
            /*background-position: 50px 100px;*/ /*又左上角为原点*/
            background-position: 50% 50%; /*外层的-内层的50% */
        }
        #d2{
            width: 611px;
            height: 376px;
            background-color: #e8e8e8;
            background-image: url("https://img1.baidu.com/it/u=67661275,2162005468&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1679072400&t=4ef43efa20bbc2600b2c4b9fd9607b3c");
            background-repeat: no-repeat;
            background-position: 80px 40px;
            background-size: 200px 220px;
        }
    </style>
</head>
<body>
    <div id="d1"></div>
    <div id="d2"></div>
    <h1>颜色测试</h1>


</body>
</html>